package com.crm.service;

import java.util.List;

import org.springframework.data.domain.Page;

import com.crm.entity.Photos;

public interface PhotosService {

	/**
	 * 
	* @Title: findPhotosByCategory
	* @author  
	* @Description: 按图片类别查询图片
	* @param category
	* @return
	* @return List<Photos>
	 */
	List<Photos> findPhotosByCategory(String category);

	
	/**
	 * 
	* @Title: addPhotos
	* @author  
	* @Description: 添加图片
	* @param photos
	* @return void
	 */
	void addPhotos(Photos photos);


	/**
	 * 
	* @Title: getPhotosById
	* @author  
	* @Description: 按id查询图片
	* @param id
	* @return
	* @return Photos
	 */
	Photos getPhotosById(String id);


	/**
	 * 
	* @Title: getPhotosByPage
	* @author  
	* @Description: 按条件查询图片
	* @param pageIndex
	* @param title
	* @return
	* @return Page<Photos>
	 */
	Page<Photos> getPhotosByPage(Integer pageIndex, String title);

}
